home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / alsa / pcm / modem.conf < prev    next >
Text File  |  2006-01-09  |  1KB  |  105 lines

  1. #
  2. # "raw" modem - phoneline
  3. #
  4.  
  5. pcm.!phoneline {
  6.     @args [ CARD DEV ]
  7.     @args.CARD {
  8.         type string
  9.         default {
  10.             @func getenv
  11.             vars [
  12.                 ALSA_MODEM_CARD
  13.                 ALSA_PCM_CARD
  14.                 ALSA_CARD
  15.             ]
  16.             default {
  17.                 @func refer
  18.                 name defaults.pcm.modem.card
  19.             }
  20.         }
  21.     }
  22.     @args.DEV {
  23.         type integer
  24.         default {
  25.             @func igetenv
  26.             vars [
  27.                 ALSA_MODEM_DEVICE
  28.             ]
  29.             default {
  30.                 @func refer
  31.                 name defaults.pcm.modem.device
  32.             }
  33.         }
  34.     }
  35.     @func refer
  36.     name {
  37.         @func concat
  38.         strings [
  39.             "cards."
  40.             {
  41.                 @func card_driver
  42.                 card $CARD
  43.             }
  44.             ".pcm.modem." $DEV ":CARD=" $CARD
  45.         ]
  46.     }
  47. }
  48.  
  49. #
  50. #  "autohooked" modem
  51. #
  52.  
  53. pcm.!modem {
  54.     @args [ CARD DEV ]
  55.     @args.CARD {
  56.         type string
  57.         default {
  58.             @func getenv
  59.             vars [
  60.                 ALSA_MODEM_CARD
  61.                 ALSA_PCM_CARD
  62.                 ALSA_CARD
  63.             ]
  64.             default {
  65.                 @func refer
  66.                 name defaults.pcm.modem.card
  67.             }
  68.         }
  69.     }
  70.     @args.DEV {
  71.         type integer
  72.         default {
  73.             @func igetenv
  74.             vars [
  75.                 ALSA_MODEM_DEVICE
  76.             ]
  77.             default {
  78.                 @func refer
  79.                 name defaults.pcm.modem.device
  80.             }
  81.         }
  82.     }
  83.     type hooks
  84.     slave {
  85.         pcm {
  86.             @func concat
  87.             strings [
  88.                 "cards.pcm.phoneline:CARD=" $CARD ",DEV=" $DEV
  89.             ]
  90.         }
  91.     }
  92.     hooks.0 {
  93.         type ctl_elems
  94.         hook_args [
  95.         {
  96.             name "Off-hook Switch"
  97.             preserve true
  98.             value "on"
  99.             lock false
  100.             optional true
  101.         }
  102.         ]
  103.     }
  104. }
  105.